Optimal. Leaf size=50 \[ \frac{a^3 \tan ^5(c+d x)}{5 d}+\frac{2 a^3 \tan ^3(c+d x)}{3 d}+\frac{a^3 \tan (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0301843, antiderivative size = 50, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {3657, 12, 3767} \[ \frac{a^3 \tan ^5(c+d x)}{5 d}+\frac{2 a^3 \tan ^3(c+d x)}{3 d}+\frac{a^3 \tan (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3657
Rule 12
Rule 3767
Rubi steps
\begin{align*} \int \left (a+a \tan ^2(c+d x)\right )^3 \, dx &=\int a^3 \sec ^6(c+d x) \, dx\\ &=a^3 \int \sec ^6(c+d x) \, dx\\ &=-\frac{a^3 \operatorname{Subst}\left (\int \left (1+2 x^2+x^4\right ) \, dx,x,-\tan (c+d x)\right )}{d}\\ &=\frac{a^3 \tan (c+d x)}{d}+\frac{2 a^3 \tan ^3(c+d x)}{3 d}+\frac{a^3 \tan ^5(c+d x)}{5 d}\\ \end{align*}
Mathematica [A] time = 0.0973905, size = 38, normalized size = 0.76 \[ \frac{a^3 \left (\frac{1}{5} \tan ^5(c+d x)+\frac{2}{3} \tan ^3(c+d x)+\tan (c+d x)\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.001, size = 35, normalized size = 0.7 \begin{align*}{\frac{{a}^{3}}{d} \left ({\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{5}}{5}}+{\frac{2\, \left ( \tan \left ( dx+c \right ) \right ) ^{3}}{3}}+\tan \left ( dx+c \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.64202, size = 138, normalized size = 2.76 \begin{align*} a^{3} x + \frac{{\left (3 \, \tan \left (d x + c\right )^{5} - 5 \, \tan \left (d x + c\right )^{3} - 15 \, d x - 15 \, c + 15 \, \tan \left (d x + c\right )\right )} a^{3}}{15 \, d} + \frac{{\left (\tan \left (d x + c\right )^{3} + 3 \, d x + 3 \, c - 3 \, \tan \left (d x + c\right )\right )} a^{3}}{d} - \frac{3 \,{\left (d x + c - \tan \left (d x + c\right )\right )} a^{3}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.00163, size = 104, normalized size = 2.08 \begin{align*} \frac{3 \, a^{3} \tan \left (d x + c\right )^{5} + 10 \, a^{3} \tan \left (d x + c\right )^{3} + 15 \, a^{3} \tan \left (d x + c\right )}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.650289, size = 54, normalized size = 1.08 \begin{align*} \begin{cases} \frac{a^{3} \tan ^{5}{\left (c + d x \right )}}{5 d} + \frac{2 a^{3} \tan ^{3}{\left (c + d x \right )}}{3 d} + \frac{a^{3} \tan{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\x \left (a \tan ^{2}{\left (c \right )} + a\right )^{3} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.56029, size = 401, normalized size = 8.02 \begin{align*} -\frac{15 \, a^{3} \tan \left (d x\right )^{5} \tan \left (c\right )^{4} + 15 \, a^{3} \tan \left (d x\right )^{4} \tan \left (c\right )^{5} + 10 \, a^{3} \tan \left (d x\right )^{5} \tan \left (c\right )^{2} - 30 \, a^{3} \tan \left (d x\right )^{4} \tan \left (c\right )^{3} - 30 \, a^{3} \tan \left (d x\right )^{3} \tan \left (c\right )^{4} + 10 \, a^{3} \tan \left (d x\right )^{2} \tan \left (c\right )^{5} + 3 \, a^{3} \tan \left (d x\right )^{5} - 5 \, a^{3} \tan \left (d x\right )^{4} \tan \left (c\right ) + 60 \, a^{3} \tan \left (d x\right )^{3} \tan \left (c\right )^{2} + 60 \, a^{3} \tan \left (d x\right )^{2} \tan \left (c\right )^{3} - 5 \, a^{3} \tan \left (d x\right ) \tan \left (c\right )^{4} + 3 \, a^{3} \tan \left (c\right )^{5} + 10 \, a^{3} \tan \left (d x\right )^{3} - 30 \, a^{3} \tan \left (d x\right )^{2} \tan \left (c\right ) - 30 \, a^{3} \tan \left (d x\right ) \tan \left (c\right )^{2} + 10 \, a^{3} \tan \left (c\right )^{3} + 15 \, a^{3} \tan \left (d x\right ) + 15 \, a^{3} \tan \left (c\right )}{15 \,{\left (d \tan \left (d x\right )^{5} \tan \left (c\right )^{5} - 5 \, d \tan \left (d x\right )^{4} \tan \left (c\right )^{4} + 10 \, d \tan \left (d x\right )^{3} \tan \left (c\right )^{3} - 10 \, d \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + 5 \, d \tan \left (d x\right ) \tan \left (c\right ) - d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]